from flet import ( ControlEvent )

def route_return(event:ControlEvent):
    views:list = event.page.views
    if len(views) > 1:
        views.pop()
        event.page.update()

def get_window_size(event:ControlEvent):
    return event.page.window.width, event.page.window.height